﻿/*
=======================================================
    TwistingType【捻制类型】
=======================================================
*/

namespace Services
{
    public interface ITwistingTypeLogic : ILogic<TwistingTypeModel, TwistingTypeFilterModel>
    {
        int UpdateIsDelete(bool flag, params int[] ids);
    }


    public class TwistingTypeLogic : BaseLogic<TwistingTypeModel, TwistingTypeFilterModel, TwistingType, ITwistingTypeRepository, ITwistingTypeMapping, ITwistingTypeService>, ITwistingTypeLogic
    {
        public TwistingTypeLogic(ICurrentUser currentUser, ITwistingTypeRepository repository, ITwistingTypeMapping mapping, ITwistingTypeService service)
            : base(currentUser, repository, mapping, service)
        {
        }

        #region 启用/禁用  UpdateIsDelete
        public int UpdateIsDelete(bool flag, params int[] ids)
        {
            return _repository.UpdateIsDelete(flag, ids);
        }
        #endregion
        
    }
}
